%{
	#include <iostream>
	#include "definicje.h"
	int value;
	int charCount = 0;
	
%}

%option noyywrap

%%

-?[0-9]+ 			{value = atoi(yytext); charCount+= yyleng; return NUM;}

[\+\-\*/%()]		{ charCount+= yyleng; return *yytext; }

[ \t\n]+			charCount += yyleng;

.					{charCount++; return ERR;}

%%

int getLeksem() {
	return yylex();
}